import axios from 'axios'
//import qs from 'qs'    //发送post请求的时候需要的
axios.defaults.timeout = 5000;            //响应时间

axios.defaults.baseURL = 'http://vue.wclimb.site/vi/';  //配置接口地址
export const baseUrl="http://vue.wclimb.site/images/";
export const yzmurl="http://vue.wclimb.site/images/yzm.jpg"
//获取列表
export const getVideoList =()=>{
	return axios.get("list")
			
}
//获取评论
export const getCommont =(data)=>{
	return axios.post("http://vue.wclimb.site/vi/getVideoComment",data)
			
}
//获取电影详情
export const getDetail =(data)=>{
	return axios.post("getVideoById",data)
			
}
//获取验证码
export const getyzm =()=>{
	return axios.get("getYzm")
			
}
//登录注册
export const login =(data)=>{
	return axios.post("signin",data)
			
}
//修改昵称
export const chengName =(data)=>{
	return axios.post("editUserName",data)
			
}





